/*
 * ThreadPool.h
 *
 *  Created on: Jan 11, 2013
 *      Author: bird
 */

#ifndef THREADPOOL_H_
#define THREADPOOL_H_

#include "thread.h"
#include <assert.h>
class ThreadPool
{
	static thpool_t* _thpool;
	static bool flag;
public:
	ThreadPool();
	static void T_thpool_init(int);
	static int T_AddJop(FUNC fun,void*);
	static void T_thpool_destroy();
	virtual ~ThreadPool();

};


#endif /* THREADPOOL_H_ */
